package com.ken.business.demo2.controller;

import com.ken.common.core.result.R;
import com.ken.common.core.utils.RUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class Demo2Controller {

    /**
     * 测试接口
     * @return
     */
    @RequestMapping("/test2")
    public R test(){
        log.debug("[demo2-test] - 测试接口调用成功！");
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return RUtils.createSucc("demo2-test");
    }
}
